<template>
  <div>
    <button @click="$refs.DragBox.add()">add</button>
    <DragBox ref="DragBox"></DragBox>
  </div>
</template>

<script>
import DragBox from "./components/DragBox.vue";
export default {
  components: {
    DragBox
  },
  data() {
    return {
      list: [1, 2, 3]
    }
  }
}
</script>
<style lang="scss" scoped></style>